package com.show.web.bigscreen;

import com.show.util.FileUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Map;

/**
 * 大屏展示Controller
 *
 * @author 姜文
 * @date 2018年5月13日, PM 01:14:42
 */
@Controller
public class BigScreenTurnController {

    private FileUtil fileUtil;

    @Autowired
    public BigScreenTurnController(FileUtil fileUtil) {
        this.fileUtil = fileUtil;
    }

    /**
     * 跳转大屏展示
     *
     * @author 姜文
     * @date 2018年5月13日, PM 01:14:42
     */
    @GetMapping(value = "toBigScreen")
    public String toBigScreen(Map<String, Object> map) {
        map.put("SERVERIP", fileUtil.getSERVERIP());
        map.put("LNG", fileUtil.getLNG());
        map.put("LAT", fileUtil.getLAT());
        return "showBig/bigShow";
    }


}
